package com.jydd.singlekotlinmvvm.comm.extensions

import android.view.View
import android.widget.EditText

/**
 * created by 韦敏敏
 * on 2020/1/21
 */
fun EditText.trimText() : String {
    return this.text.toString().trim()
}
fun View.gone() {
    this.visibility = View.GONE
}
fun View.visible(){
    this.visibility = View.VISIBLE
}